<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">

<head py:match="head" py:attrs="select('@*')">
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    
    <script type="text/javascript" src="/static/javascript/mootools-1.2.5-core.js"></script>
    <script type="text/javascript" src="/static/javascript/mootools-1.2.4.4-more.js"></script>
    <script type="text/javascript" src="/static/javascript/yale.js"></script>
    <link py:for="css in tg_css" py:replace="css.display()" />
    <link py:for="js in tg_js_head" py:replace="js.display()" />
    <meta py:replace="select('*')" />
    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/static/css/style.css')}" />
</head>

<?python
  # define mock menus as list of (title, url, is_active) tuples
  menu_top = [
    ('Yale in China','/',True),
    ('Events','/events', False),
    ('Programs','/', False),
    ('Connect','/', False),
    ('Donate','/', False),
    ('About','/', False),
    ('Search','/', False)
  ]
  menu_side = [
    ('Official Website', 'http://www.turbogears.org'),
    ('Documentation', 'http://docs.turbogears.org'),
    ('Bugs & Suggestions', 'http://trac.turbogears.org'),
    ('Mailing List', 'http://groups.google.com/group/turbogears'),
  ]
?>

<body py:match="body" py:attrs="select('@*')">

  <div py:for="js in tg_js_bodytop" py:replace="js.display()" />

  <div id="header">
    
  </div>

  <ul id="mainmenu">
    <li py:for="num, (title, url, is_active) in enumerate(menu_top)" class="${('', 'first')[not num]}">
      <a href="${url}" class="${('', 'active')[is_active]}" py:content="title"></a>
    </li>
    <!--li py:if="tg.config('identity.on') and not defined('logging_in')" class="loginlogout"><py:choose>
      <py:when test="tg.identity.anonymous">
        <a href="${tg.url(tg.identity.login_url)}" class="loginlogout">Login</a>
      </py:when>
      <py:otherwise>
        <span>Welcome <span py:replace="tg.identity.user.display_name or tg.identity.user.user_name">user</span></span>
        <a href="${tg.url('/logout')}" class="loginlogout">Logout</a>
      </py:otherwise>
    </py:choose></li-->
  </ul>
  <div id="flash" class="notice" py:if="value_of('tg_flash', None)">${HTML(tg_flash)}</div>
  <div id="content">
    <div id="bread">${HTML(bread)}</div>
    <div py:replace="select('*|text()')"/>
  </div>
  <div id="footer">
        <div id="footer-firstline">
            <div class="left">
                <a href="sitemap">Site Map</a> | 
                <a href="term">Term of Use</a> |
                <a href="privacy">Privacy Policy</a> |
                <a href="contact">Contact Us</a>
            </div>
            <div class="right">Check us out on Facebook + LinkedIn</div>
        </div>
        <div id="footer-secondline">
            Yale Club of Beijing, 2010
        </div>
    </div>

  <div py:for="js in tg_js_bodybottom" py:replace="js.display()" />
  
</body>

</html>
